import './assets/main.css'
import 'normalize.css/normalize.css'

import { createApp } from 'vue'
import App from './App.vue'

// 初始化Vue实例
// 引入配置好的路由实例化对象
import router from './router'
import store from './store'

// 引入配置好的i18n
import i18n from './i18n'
import CmTable from './components/CmTable.vue'

// 引入mock并执行
import './mock'
const app = createApp(App)
// 注册Element Plus图标集
import * as ElIcons from '@element-plus/icons-vue'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
for (const name in ElIcons) {
  app.component(name, ElIcons[name])
}
app.component(CmTable.name, CmTable)
// 挂载各种实例化对象
app.use(CmTable)
app.use(router)
app.use(store)
app.use(i18n)
app.mount('#app')
